export function concat(noteContents: string, startOffset: number, insertText: string, insertNewLineCount=1, endNewLineCount=0) {
    if (!noteContents.contains(insertText)) {
        let insertNewLine = "\n".repeat(insertNewLineCount);
        let endNewLine = "\n".repeat(endNewLineCount);

        return noteContents.slice(0, startOffset) + `${insertNewLine}${insertText}${endNewLine}` + noteContents.slice(startOffset);
    }
    else {
        return noteContents;
    }
}